package com.qf.entity;

import java.util.Date;

/**
 *
 * 短信验证码实体类，保存验证码内容，过期时间
 */
public class MsgCode {
    public MsgCode(String code, Date expireTime) {
        this.code = code;
        this.expireTime = expireTime;
    }

    private String code;
    private Date expireTime;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    @Override
    public String toString() {
        return "过期时间是"+expireTime.toString()+"    验证码为"+code.toString();
    }
}
